import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'

// 按需引入 vant
import {
  Button, NavBar, Icon, Grid, GridItem, Swipe, SwipeItem, Card, Image as VanImage,
  Form, Field, CellGroup,
  Toast
} from 'vant'
import 'lib-flexible'

const app = createApp(App)

app.use(Button)
  .use(NavBar)
  .use(Icon)
  .use(Grid)
  .use(GridItem)
  .use(Swipe)
  .use(SwipeItem)
  .use(Card)
  .use(VanImage)
  .use(Form)
  .use(Field)
  .use(CellGroup)
  .use(Toast)

app.use(store).use(router).mount('#app')
